home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / automake-1.6 / am / lisp.am < prev    next >
Encoding:
Text File  |  2005-10-16  |  3.0 KB  |  103 lines

  1. ## automake - create Makefile.in from Makefile.am
  2. ## Copyright 1996, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
  3.  
  4. ## This program is free software; you can redistribute it and/or modify
  5. ## it under the terms of the GNU General Public License as published by
  6. ## the Free Software Foundation; either version 2, or (at your option)
  7. ## any later version.
  8.  
  9. ## This program is distributed in the hope that it will be useful,
  10. ## but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12. ## GNU General Public License for more details.
  13.  
  14. ## You should have received a copy of the GNU General Public License
  15. ## along with this program; if not, write to the Free Software
  16. ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  17. ## 02111-1307, USA.
  18.  
  19.  
  20. ## ---------- ##
  21. ## Building.  ##
  22. ## ---------- ##
  23.  
  24. EMACS = @EMACS@
  25. lispdir = @lispdir@
  26.  
  27. .el.elc:
  28.     @echo 'WARNING: Warnings can be ignored. :-)'
  29.     if test $(EMACS) != no; then \
  30.       EMACS=$(EMACS) $(SHELL) $(elisp_comp) $<; \
  31.     else : ; fi
  32.  
  33. ## ------------ ##
  34. ## Installing.  ##
  35. ## ------------ ##
  36.  
  37. if %?INSTALL%
  38. _am_installdirs += $(DESTDIR)$(%NDIR%dir)
  39. ?BASE?%DIR%LISP_INSTALL = $(INSTALL_DATA)
  40. ?!BASE?%DIR%LISP_INSTALL = $(install_sh_DATA)
  41. ?EXEC?.PHONY install-exec-am: install-%DIR%LISP
  42. ?!EXEC?.PHONY install-data-am: install-%DIR%LISP
  43. install-%DIR%LISP: $(%DIR%_LISP) $(ELCFILES)
  44.     @$(NORMAL_INSTALL)
  45. ## lispdir might not be defined.
  46.     @if test -n "$(lispdir)"; then \
  47.       $(mkinstalldirs) $(DESTDIR)$(%NDIR%dir); \
  48. ## Funny invocation because Makefile variable can be empty, leading to
  49. ## a syntax error in sh.
  50.       list='$(%DIR%_LISP)'; for p in $$list; do \
  51. ## A lisp file can be in the source directory or the build directory.
  52.         if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
  53. ?BASE?        f="`echo $$p | sed -e 's|^.*/||'`"; \
  54. ?!BASE?        f="$$p"; \
  55.         echo " $(%DIR%LISP_INSTALL) $$d$$p $(DESTDIR)$(%NDIR%dir)/$$f"; \
  56.         $(%DIR%LISP_INSTALL) $$d$$p $(DESTDIR)$(%NDIR%dir)/$$f; \
  57. ## Only install .elc file if it exists.
  58.         if test -f $${p}c; then \
  59.           echo " $(%DIR%LISP_INSTALL) $${p}c $(DESTDIR)$(%NDIR%dir)/$${f}c"; \
  60.           $(%DIR%LISP_INSTALL) $${p}c $(DESTDIR)$(%NDIR%dir)/$${f}c; \
  61.         else : ; fi; \
  62.       done; \
  63.     else : ; fi
  64. endif %?INSTALL%
  65.  
  66.  
  67. ## -------------- ##
  68. ## Uninstalling.  ##
  69. ## -------------- ##
  70.  
  71. if %?INSTALL%
  72. .PHONY uninstall-am: uninstall-%DIR%LISP
  73. uninstall-%DIR%LISP:
  74.     @$(NORMAL_UNINSTALL)
  75. ## lispdir might not be defined.
  76.     @if test -n "$(lispdir)"; then \
  77.       list='$(%DIR%_LISP)'; for p in $$list; do \
  78. ?BASE?        f="`echo $$p | sed -e 's|^.*/||'`"; \
  79. ?!BASE?        f="$$p"; \
  80.         echo " rm -f $(DESTDIR)$(%NDIR%dir)/$$f $(DESTDIR)$(%NDIR%dir)/$${f}c"; \
  81.         rm -f $(DESTDIR)$(%NDIR%dir)/$$f $(DESTDIR)$(%NDIR%dir)/$${f}c; \
  82.       done; \
  83.     else : ; fi
  84. endif %?INSTALL%
  85.  
  86.  
  87. ## ---------- ##
  88. ## Cleaning.  ##
  89. ## ---------- ##
  90.  
  91. .PHONY clean-am: clean-lisp
  92. clean-lisp:
  93.     -test -z "$(ELCFILES)" || rm -f $(ELCFILES)
  94.  
  95.  
  96. ## -------------- ##
  97. ## Distributing.  ##
  98. ## -------------- ##
  99.  
  100. if %?DIST%
  101. DIST_COMMON += $(%DIR%_LISP)
  102. endif %?DIST%
  103.